package com.zzzyh.forumsystemclient.services.impl;

import com.zzzyh.forumsystemclient.dao.PhotoMapper;
import com.zzzyh.forumsystemclient.model.Photo;
import com.zzzyh.forumsystemclient.services.IPhotosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PhotosServiceImpl implements IPhotosService {
    @Autowired
    private PhotoMapper photoMapper;

    @Override
    public List<Photo> getPhotosByAlbumId(Long albumId) {
        return photoMapper.getPhotosByAlbumId(albumId);
    }
}
